<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
       var getMin=function(){
            var min=6;
            for(var i=0;i<=arguments.length;i++){
                if(min>arguments[i]){
                    min=arguments[i];

                }
            }
            return min;
       }
       var a= getMin(1,2,23,-3,15,99,888,33,77);
          document.write("最小值为："+a);
    </script>
</body>
</html>